<template>
  <div class="guang">
    <van-button round style="margin-left: 320px;width: 100px;margin-top: 20px" @click="router.replace({name:'Home'})">跳 过</van-button>
  </div>
</template>
<style scoped>
.guang{
  width: 100%;
  height: 100%;
  background: url("../assets/images/广告图.png") no-repeat center;
  background-size: cover;
}
</style>
<script setup>
import {useRouter} from "vue-router";
const router = useRouter();
const timer=setInterval(()=>{
  router.replace({name:"Home"})
},5000)

onUnmounted(()=>{
  clearInterval(timer)
})
</script>